<template>
  <view class="container">

    <upFix v-if="isupFix" class="form"></upFix>
    <FinishFix v-else></FinishFix>


  </view>
</template>

<script setup>
  const isupFix = ref(false)
  onLoad((e) => {

    console.log(e)
    let {
      name
    } = e
    if (name == "我要报修") {
      isupFix.value = true
    } else if (name == "完成维修") {
      isupFix.value = false
    }

    //修改导航标题
    uni.setNavigationBarTitle({
      title: name
    })

  })
</script>

<style lang="scss" scoped>
  .container {
    width: 100vw;
    height: 100vh;
    margin: 10rpx 10rpx;
    padding: 10rpx auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: $uni-bg-color-grey;

    .form {
      width: 96%;
      height: 100%;
      margin: 0 auto;
      padding: 10rpx 5rpx;

    }
  }
</style>